package Others.DesignPattern.ProxyPattern.Original;

import Others.DesignPattern.ProxyPattern.Original.Object.BePursued;
import Others.DesignPattern.ProxyPattern.Original.Object.Pursuit;

public class main {
    public static void main(String[] args) {

        BePursued jiaojiao = new BePursued("李娇娇");
        Pursuit zhuojiayi = new Pursuit(jiaojiao.getName());
        zhuojiayi.giveChocolates();
        zhuojiayi.giveDolls();
        zhuojiayi.giveFlowers();


        //这样写的话相当于是zhuojiayi认识lijiaojiao了，所以并不正确,而且跳过了中间人daili
        //不理解的建议去看看大话--代理模式
    }
}
